/*#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
long long fun(long long n)
{
	if (n == 0 || n == 1)
		return 0;
	int i,a=7,b=11,c;
	for (i = 2; i <= n; i++)
	{
		c = (a + b) % 3;
		a = b % 3;
		b = c % 3;
	}
	if (c == 0)
		return 1;
	else
		return 0;
}
int main()
{
	int ans;
	long long n;
	while (scanf("%lld", &n) != EOF)
	{
		ans = fun(n);
		if (ans ==1)
			printf("yes\n");
		else
			printf("no\n");
	}
	return 0;
}*/